﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/MasterPage1.master" AutoEventWireup="true" CodeFile="KHTT_CapNhatThongTinCaNhan.aspx.cs" Inherits="ChucNang_KhachHangDaiChung_KhachHangDaiChung_CapNhatThongTinCaNhan" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h2>Cập Nhật Thông Tin Cá Nhân</h2>
<div style="float:left">
        <asp:Image ID="imgHinhAnh" runat="server" />
    </div>
<table>
   <tr>
   <td> Họ Tên:</td>
   <td><asp:TextBox ID="txtHoTen" runat="server" MaxLength="50" Width="180px"></asp:TextBox>
   
    <asp:RequiredFieldValidator ID="rqfvHoTen" runat="server" 
           ErrorMessage="RequiredFieldValidator" ControlToValidate="txtHoTen">*</asp:RequiredFieldValidator></td>
   </tr>
   
   <tr>
   <td>Email:</td>
   <td><asp:TextBox ID="txtEmail" runat="server" MaxLength="100" Rows="3" 
           Width="194px"></asp:TextBox>
                        </td>
   </tr>
   
   <tr>
   <td>Địa chỉ: </td>
   <td><asp:TextBox ID="txtDiaChi" runat="server" MaxLength="50" TextMode="MultiLine"></asp:TextBox></td>
   </tr>
   
   <tr>
   <td>Điện Thoại: </td>
   <td><asp:TextBox ID="txtDienThoai" runat="server" MaxLength="50"></asp:TextBox>
                        </td>
   </tr>
   
   <tr>
   
   <td>Avatar:</td>
   <td><asp:FileUpload ID="fulHinhAnh" runat="server" /></td>
   </tr>
   
   <tr>
   <td>&nbsp;</td>
   <td><asp:CheckBox ID="chkGuiMail" runat="server" 
           Text="Gửi email thông tin sản phẩm yêu thích" /></td>
   </tr>
   
   <tr>
   <td>Mã Tài Khoản:</td>
   <td><asp:TextBox ID="txtMaTaiKhoan" runat="server" MaxLength="10" Rows="3"/>
                        </td>
   </tr>
   
   <tr>
   <td>
       &nbsp;</td>
       <td><asp:CheckBox ID="chkDoiMatKhau" runat="server" 
               oncheckedchanged="chkDoiMatKhau_CheckedChanged" AutoPostBack="True" 
               Text="Đổi mật khẩu" /></td>
   </tr>
   
   <tr>
        <td>Password cũ:</td>
        <td><asp:TextBox ID="txtPasswordCu" runat="server" TextMode="Password"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rqfvPasswordCu" runat="server" 
                ErrorMessage="RequiredFieldValidator" ControlToValidate="txtPasswordCu">*</asp:RequiredFieldValidator></td>
   </tr>
   
   <tr>
   <td><asp:Label ID="Label6" runat="server" Text="Password mới:"></asp:Label></td>
   <td>
       <asp:TextBox ID="txtPasswordmoi" runat="server" TextMode="Password"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rqfvPasswordMoi" runat="server" 
               ErrorMessage="RequiredFieldValidator" ControlToValidate="txtPasswordmoi">*</asp:RequiredFieldValidator></td>
   </tr>
   
   <tr>
   <td>Nhập lại Password mới:</td>
   <td>
       <asp:TextBox ID="txtPasswordmoinhaplai" runat="server" TextMode="Password"></asp:TextBox><asp:CompareValidator ID="cvPasswordNhapLai" runat="server" 
               ErrorMessage="Password nhập lại không khớp" ControlToCompare="txtPasswordmoinhaplai" 
               ControlToValidate="txtPasswordmoi"></asp:CompareValidator></td>
   </tr>
   
   
   <tr>
   <td colspan="2" align="center">
       <asp:Button ID="btnCapNhat" runat="server" 
           Text="Cập Nhật" onclick="btnCapNhat_Click"  />
           <input value="Trở lại" type="button" onclick="history.go(-1)" />
   </td>
           
   </tr>
   </table>
</asp:Content>

